import request from '@/utils/request'

// 查询interfaceFieldsManage列表
export function listInterfaceFields(query) {
  return request({
    url: '/ncpcs/upload/interfaceFields/list',
    method: 'get',
    params: query
  })
}

// 查询interfaceFieldsManage详细
export function getInterfaceFields(interfaceId) {
  return request({
    url: '/ncpcs/upload/interfaceFields/' + interfaceId,
    method: 'get'
  })
}

// 新增interfaceFieldsManage
export function addInterfaceFields(data) {
  return request({
    url: '/ncpcs/upload/interfaceFields',
    method: 'post',
    data: data
  })
}

// 修改interfaceFieldsManage
export function updateInterfaceFields(data) {
  return request({
    url: '/ncpcs/upload/interfaceFields',
    method: 'put',
    data: data
  })
}

// 删除interfaceFieldsManage
export function delInterfaceFields(interfaceId) {
  return request({
    url: '/ncpcs/upload/interfaceFields/' + interfaceId,
    method: 'delete'
  })
}

// 导出interfaceFieldsManage
export function exportInterfaceFields(query) {
  return request({
    url: '/ncpcs/upload/interfaceFields/export',
    method: 'get',
    params: query
  })
}
